import { NameTextDao } from './../dao/nameTextDao'
import { IamInfo } from '../controller/iamInfo'
import { NameText } from '../model/name_text'
export class NameTextService {
  private readonly nameTextDao = new NameTextDao();
  queryNameTextList(params: any): Promise<Array<NameText>> {
    params.creator = IamInfo.id
    return this.nameTextDao.queryNameTextList(params)
  }

  upsertNameText(params: any): Promise<any> {
    params.creator = IamInfo.id
    params.updater = IamInfo.id
    return this.nameTextDao.upsertNameText(params)
  }
  deleteNameText(params: any): Promise<number> {
    return this.nameTextDao.deleteNameText(params)
  }
  deleteAllNameText(params: any): Promise<number> {
    return this.nameTextDao.deleteAllNameText(params)
  }
}
